R Shiny is used for creating interactive web applications in R. Your users can change what they see by interacting with Shiny.
It isn’t really for us, it’s for others to interactively explore our data. Our users do not need to know R.
We can also use R Shiny to analyze data and create graphics and summaries - but the point is it is to be shared with others on the internet.
If your data updates, Shiny can automatically update the data. This means users always see the most current information.
As the designers of an R Shiny app, we design it to allow other uses to select predefined options or filters. We can design a Shiny app to look and behave exactly how we want!
Select File-New File-Shiny Web App
Choose a name, choose a single file (app.R when just starting out), choose a location on your local drive to store your app
There should now be a new folder with an RStudio created demo file in it. Click on “Run App” in the source windown
If you run the app (green triangle icon on the upper right) the default Old Faithful Shiny app should pop up
You can open it in your browser to get a better look
https://shiny.posit.co/ Homepage
https://github.com/rstudio/shiny Mastering Shiny (online text)
## ### Remainder of shiny1_ui_only.R
shinyApp(ui = ui, server = server) runs and we have a Shiny apprunGist("8ad7b367f0d4d9947a94c5387900b2bd") make sure your Shiny app has a standard name like app.R and not my non-standard ones.I have access to earthquake data in Southern California
I can create a Shiny app so my users could select a specific time frame and map the earthquakes.
They might adjust their choices to see data from different years, or click on the map to get different information about a particular are.